home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
plasma.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-03
|
534b
|
32 lines
#include "sprite.h"
#include "weapon.h"
#include "projectile.h"
#include "plasma.h"
#include "effects.h"
#include "options.h"
extern "C"{
#include "soundIt.h"
}
Popgun :: Popgun( Sprite* anchor) : Projectile( anchor, 10, 5, 5)
{
}
void
Popgun :: sound(int channel)
{
if(option_effects)
Snd_effect(SND_PLASMA,channel);
}
void
Popgun :: move(void)
{
for(int i=0;i<maxproj;i++)
{
beam[i].move(0,-1);
if(beam[i].getYp() < 0)
beam[i].disappear();
}
}